﻿#include"core.h"
class Texture {
public:
	Texture(const char* filename, int unit);
	~Texture();
	void bind();
	int getWidth()const { return mWidth; }
	int getHeight()const { return mHeight; }
private:
	GLuint mTexture{ 0 };
	int mHeight{0};
	int mWidth{0};
	int mUnit{0};//当前绑定的纹理单元
};